﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CustomerArchives_CustomerArchives" Codebehind="CustomerArchives.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<%@ Register Src="../Controls/V_CUSTOMERListControl.ascx" TagName="V_CUSTOMERListControl"
    TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<style type="text/css">
fieldset {width:96%;}
select {margin:0;padding:0;}
body{padding:0; margin:0; background-color:#ffffff; text-align:center; font: "宋体"; font-size:12px;}
a:visited{text-decoration:none;color:slategray;}
a:hover{text-decoration:underline;color:slategray;}
a:link{text-decoration:none;color:slategray;}
.juli {margin-top:10px;padding-left:20px;}
.juli1 {margin-top:20px; margin-left:20px; text-align:left;}
.juli2 { margin:5px auto;}
.juli3 { margin-bottom:50px;}
.juli4 {padding-left:20px;padding-top:20px;padding-bottom:10px;background-color:#fef3bb;}
.juli5 {padding:0px; margin:0px;}
.z1{background-color:#e7e7e7; text-align:left; line-height:20px;}
.z2{background-color:#FFFFFF; text-align:left; line-height:20px;}
.input_button {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;}
.input_button1 {width:74px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt1.gif) no-repeat;}
.input_button2 {width:52px;height:23px;border:none;background:#ffffff url(../Include/Images/bt.gif) no-repeat; padding-top:5px;}
.input_button2 a{color:#000000;}
.input_button2 a:hover{color:#FF3300; text-decoration:underline;}
.input_button3 {width:95px;height:23px;border:none;background:#ffffff url(../Include/Images/bt2.gif) no-repeat;}
.zt1 {padding-left:10px; font-weight:600; color:#000000;}
.zt2 {padding-left:10px;}
.zt3 {text-align:center; font-weight:600; color:#000000;}
.zt4 {text-align:center; color:#000000;}
.zt5 {text-align:left; font-weight:600;}
.zt6 {font-size:14px; font-weight:600;}
.zt7 {text-align:right; color:#000000;}
.zt8 {text-align:right; color:#000000;}
.spmenu { line-height:28px; text-align:center;margin-bottom:10px; border-color:#999999;}
.menu_bg {background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;}
.menu_bg1 { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-right:20px;border-bottom:#cf994b 1px solid; height:28px;}
.tb {width: 90%; background-color:#999999;}
.tb1 {width: 90%; background-color:#999999; margin-top:10px;}
.tb2 {width: 1050px; background-color:#999999;}
.tb5 {width: 920px; background-color:#999999;}
.left {float:left; clear:right;}
.k1 {float:left;width:90%; background-color:#efefef; border:#999999 1px solid;padding-top:10px;}
.k2 {float:left; width:90%; line-height:28px; margin-top:10px;}
.k3 {float:left; width:90%; line-height:28px; margin-top:10px; padding-bottom:30px; clear:both;}
.btlj1 {background: url(../Include/Images/bt1.gif) no-repeat; width:74px; height:23px;text-align:center; padding-top:5px; padding-right:26px; padding-left:26px; padding-bottom:4px; font-size:12px; display:inline;margin-left:2px;}
.btlj1 a{color:#000000; text-decoration:none;}
.btlj1 a:hover{color:#FF3300;text-decoration:underline;}
.hidden{visibility:hidden;}
a.lj {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:link {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:visited {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:hover {color:#ff3300;}
a.lj:active {color:#ff3300;}
.input_button4 {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;font-weight:bold;}
h2 {padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;}
.menu_bg3 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;clear:left;}
</style>
<script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
    <script type="text/javascript" src="../Include/Js/SocanCode.js"></script>
    <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>
    <script type="text/javascript">          
        function SearchVIP(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchVIP.aspx', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:750px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            if(handle=="0")
	            {
	            window.location.href="AddVIP.aspx?isorder=1";
	            }
	            else
	            {
	            setVIPValue(handle);
	            }
	        }
        }  
       function setVIPValue(p)
       {
            var gk=p.split("|");
            document.getElementById("txtUserCode").innerText=gk[0];
            document.getElementById("hdUserCode").value=gk[0];
       }
       function OpenDetailWindow(ctl)
       {
            var strUrl = "../CustomerArchives/CustomerArchiveDetail.aspx?code=" + ctl.lang;
            //alert(strUrl);
            window.open(strUrl);
       }
       
       
              function OpenEditWindow(ctl)
       {
            var strUrl = "../CustomerArchives/CustomerArchiveEdit.aspx?code=" + ctl.lang;
            //alert(strUrl);
            window.open(strUrl);
       }
       
       
       function Clear(obj)
       {
            document.all(obj).value="";
       }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
        <h2>会员档案</h2>
            <div class="menu_bg">
            <!--会员：<asp:TextBox ID="txtUserCode" runat="server" ReadOnly="True"></asp:TextBox>
            <asp:HiddenField ID="hdUserCode" runat="server" />
            <a class="btlj1" href="javascript:SearchVIP('../')" id="btnChooseCustomer">选择</a>
            <a class="btlj1" href="javascript:Clear('txtUserCode')" id="btnClear">清空</a>
            <br />-->
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            帐号：<asp:TextBox ID="txtDM" runat="server"></asp:TextBox>&nbsp;
            
            姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox> &nbsp;
           
            &nbsp;&nbsp;&nbsp;昵称：<asp:TextBox ID="txtNickName" runat="server"></asp:TextBox>&nbsp;
            
            卡类：<asp:DropDownList ID="DropDownList1" Width="130" runat="server"></asp:DropDownList> &nbsp; VIP卡号：<asp:TextBox ID="txtCardCode" runat="server"></asp:TextBox>
             <br/> 
             <asp:UpdatePanel runat="server" ID="updatepanel1">
             <ContentTemplate>
             <table width="100%"><tr><td>省:<asp:DropDownList ID="DDL_Province" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Province_SelectedIndexChanged">
                </asp:DropDownList></td>
                <td>市:<asp:DropDownList ID="DDL_City" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_City_SelectedIndexChanged">
                </asp:DropDownList></td>
                <td>区:<asp:DropDownList ID="DDL_Area" runat="server" OnSelectedIndexChanged="DDL_Area_SelectedIndexChanged">
                </asp:DropDownList></td><td>地址：<asp:TextBox ID="txtDZ" runat="server"></asp:TextBox></td>
                <td>注册时间:<asp:TextBox ID="TextBox1" runat="server" OnClick="getDateString(this,oCalendarChs)" ></asp:TextBox>-<asp:TextBox ID="TextBox2"
                    runat="server" OnClick="getDateString(this,oCalendarChs)" ></asp:TextBox></td>
              </tr></table>  
            </ContentTemplate>
             </asp:UpdatePanel>
            <br/>
            电话：<asp:TextBox ID="txtDH" runat="server"></asp:TextBox>&nbsp;
            手机号：<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QQ：<asp:TextBox ID="txtQQ" runat="server"></asp:TextBox>&nbsp;
            MSN：<asp:TextBox ID="txtMSN" runat="server"></asp:TextBox>&nbsp;
            &nbsp;&nbsp;&nbsp;旺旺：<asp:TextBox ID="txtWW" runat="server"></asp:TextBox>&nbsp;
            
            <br/>
            邮箱：<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年龄:<asp:TextBox ID="TextBox3" runat="server" onkeyup="this.value=this.value.replace(/\\D/g,'');" ></asp:TextBox>-<asp:TextBox
                ID="TextBox4" runat="server" onkeyup="this.value=this.value.replace(/\\D/g,'');" ></asp:TextBox>
            备注：<asp:TextBox ID="txtBZ" runat="server"></asp:TextBox>&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnSearch" runat="server" Text="查找" CssClass="input_button" OnClick="btnSearch_Click" /></div>
        <div class="juli">
            <asp:DataList ID="dlistCustomer" runat="server" CellPadding="0">
            <HeaderTemplate>
                <table style="width:1000px; background-color:#999999;" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3" width="150">
                            帐号
                        </td>
                        <td class="zt3" width="150">
                            会员真实姓名
                        </td>
                        <td class="zt3" width="120">
                            会员昵称
                        </td >
                        <td class="zt3" width="120">
                            VIP卡号
                        </td>
                        <td class="zt3" width="120">
                            当前积分
                        </td>
                        <td class="zt3" width="120">
                            消费金额
                        </td>
                        <td class="zt3" width="120">
                            消费数量
                        </td>
                        
                             <td class="zt3" width="100">
                            编辑
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="1000" border="0" cellspacing="0" cellpadding="0">
                    <tr class="z2">
                        <td width="150" align="center" class="bk_left">
                            &nbsp;<%--<a class="lj" href= '../CustomerArchives/CustomerArchiveDetail.aspx?code=<%# Eval("GKDM") %>'><%# Eval("GKDM")%></a>--%>
                             <a class="lj" href='#' onclick='OpenEditWindow(this)' lang='<%# Eval("GKDM")%>'><%# Eval("GKDM")%></a>
                        </td>
                        <td width="150" align="center" class="bk_middle">
                            &nbsp;<%# Eval("GKMC") %>
                        </td>
                        <td width="120" align="center" class="bk_middle">
                            &nbsp;<%# Eval("BYZD5").ToString() == "" ? "--" : Eval("BYZD5")%>
                        </td>
                        <td width="120" align="center" class="bk_middle">
                            &nbsp;<%# Eval("CDM")%>
                        </td>
                        <td width="120" align="right" class="bk_middle">
                            &nbsp;<%# Eval("DQJF")%>
                        </td>
                        <td width="120" align="right" class="bk_middle">
                            &nbsp;<%# Eval("XFJE")%>
                        </td>
                        <td  width="120"  align="right" class="bk_middle">
                            &nbsp;<%# Eval("XFSL")%>
                        </td>
                        
                         <td align="center" width="100" class="bk_middle" > 
                            <a   href='#' onclick='OpenEditWindow(this)' lang='<%# Eval("GKDM")%>'>编辑</a>
                        </td>
                        
                        
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></div>
        <div class="juli"><webdiyer:aspnetpager id="AspNetPager1" 
        runat="server"
          
       NumericButtonCount="8" 
       ShowCustomInfoSection="left" 
       PagingButtonSpacing="0"
       ShowInputBox="always" 
       HorizontalAlign="Center" 
       SubmitButtonText="转到" 
       NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged" FirstPageText="首页" InputBoxClass="1" InputBoxStyle="1" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" SubmitButtonClass="input_button"></webdiyer:aspnetpager></div>
        </div>
        
    </form>
</body>
</html>
